package com.daka.service.impl;

import com.daka.dao.ActivityApplyMapper;
import com.daka.dao.ActivityMapper;
import com.daka.entity.Activity;
import com.daka.entity.ActivityAddress;
import com.daka.entity.ActivityApply;
import com.daka.entity.Group;
import com.daka.service.ActivityApplyService;
import com.daka.service.ActivityService;
import com.daka.service.GroupService;
import com.daka.service.VolunteerService;
import com.daka.service.qnzyz.BHActivityService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yangx
 * Date: 2016/8/5 0005
 * Time: 14:33
 */
@Service("ActivityApplyService")
@Transactional
public class ActivityApplyServiceImpl implements ActivityApplyService {

    @Autowired
    private ActivityApplyMapper activityApplyMapper;

    public int insert(ActivityApply activityApply){
        return activityApplyMapper.insert(activityApply);
    }

    public int update(ActivityApply activity){
        return activityApplyMapper.updateByPrimaryKeySelective(activity);
    }

    public ActivityApply selectByPrimaryKey(Long id){
        return activityApplyMapper.selectByPrimaryKey(id);
    }


}



